package com.itheima.pojo;

import org.springframework.stereotype.Component;

@Component
public class Street {
    private Integer id;
    private Integer town_id;
    private String sname;
    private Town town;
    public Town getTown() {
        return town;
    }

    public void setTown(Town town) {
        this.town = town;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Integer getTown_id() {
        return town_id;
    }

    @Override
    public String toString() {
        return "Street{" +
                "id=" + id +
                ", sname='" + sname + '\'' +
                ", town_id=" + town_id +
                ", town=" + town +
                '}';
    }

    public void setTown_id(Integer town_id) {
        this.town_id = town_id;
    }
}
